export const imagerror = {
  inserted: (el, options) => {
    el.src = el.src || options.value
    el.onerror = function () {
      el.src = options.value
    }
  },
  componentUpdated (dom, options) {
    dom.src = dom.src || options.value
  }
}
